package com.isoftstone.merchant.service.mproject;

import com.isoftstone.common.Page;
import com.isoftstone.merchant.entity.mproject.MProject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by as on 2017/12/12.
 */
public interface MProjectService {

    List<MProject> findprojectlistPage(Page page)throws Exception;

    List<MProject> checkName(Map<String, Object> map)throws Exception;

    void saveMProjectType(MProject mProject)throws Exception;

    void updateMProjectType(MProject mProject)throws Exception;

    Integer getCountFromMProject(Map<String, Object> mProjectId)throws Exception;

    void deleteMProjectType(long l)throws Exception;///

    List<MProject> findProjectNameList(Long projectTypeId);
    //根据项目类型查询下面的项目projectTypeId,cropId
    List<MProject> findProjectListByType(Map<String, Object> map)throws Exception;

    /**
     * 根据corpid查询缴费单位下的缴费项目
     * @param corpId
     * @return
     * @throws Exception
     */
    List<MProject> getProjectByCorpId(@Param("corpId") String corpId)throws Exception;

    /**
     * 查询有缴纳党费的缴费项目
     * @param corpId
     * @return
     * @throws Exception
     */
    List<MProject> getMemberShipProject(String corpId,String openAccount)throws Exception;

    List<MProject> getProjectNameByCropId(String corpId)throws Exception;

    MProject getMProjectByProjectId(Long projectId)throws Exception;
}
